<?php

declare(strict_types=1);

namespace App\Request\GuildManage;

use Hyperf\Validation\Request\FormRequest;

class GuildDelRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     */
    public function authorize(): bool
    {
        return true;
    }


    /**
     * Get the validation rules that apply to the request.
     */
    public function rules(): array
    {
        return [
            'account_id' => 'required|numeric|gt:0'
        ];
    }

    /**
     * 获取已定义验证规则的错误消息
     */
    public function messages(): array
    {
        return [
            'account_id.required' => '请选择需要删除的记录',
            'account_id.numeric' => '请选择正确的记录',
            'account_id.gt' => '请选择正确的记录',
        ];
    }
}
